<?php
	include("query/db_connection.php");
	
	$id = $_GET['id'];	
	$result = "DELETE FROM affiliate WHERE affiliateid='$id'";
	mysql_query($result);
	
	// redirect back to the view page
	header("Location: panel.php?page=affiliate");	
?>